<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/operator/tenantOperator.js"></script>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>运营商</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>分销商帐号</strong>' +
            '</li>' +
            '</ol>';
    });

    var has_add = '';
    var has_edit = '';
    var has_delete = '';
    var Tenant_tenantOperatorUser_update = false;
    var Tenant_tenantOperatorUser_look = false;
</script>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="row">
                    <div class="pull-left search col-md-3">
                        <%--<shiro:hasPermission name="system:operator:add">--%>
                        <button type="button" class="btn btn-primary" onclick="tenantOperator.add()">
                            <i class="fa fa-plus" aria-hidden="true"></i>增加
                        </button>
                        <%--</shiro:hasPermission>--%>
                    </div>
                    <div class="pull-left search col-md-2">
                        <input id="loginName" name="loginName" type="text" class="form-control"
                               placeholder="分销商账号">
                    </div>
                    <div class="pull-left search col-md-2">
                        <input id="tenantOperatorCode" name="tenantOperatorCode" type="text" class="form-control"
                               placeholder="分销商编号">
                    </div>
                    <div class="pull-left search col-md-2">
                        <input id="operatorName" name="operatorName" type="text" class="form-control"
                               placeholder="分销商名称">
                    </div>
                    <div class="pull-left search col-md-2">
                        <shiro:hasPermission name="Tenant_tenantOperatorUser_reload">
                        <button class="btn btn-success" onclick="tenantOperator.reLoad()">查询</button>
                        </shiro:hasPermission>
                    </div>
                    <shiro:hasPermission name="Tenant_tenantOperatorUser_export">
                    <div class="pull-left search fr">
                        <button class="btn btn-success exportBtn" onclick="tenantOperator.exportTenantOperator()">导出</button>
                    </div>
                    </shiro:hasPermission>
                </div>
                <table id="exampleTable" data-mobile-responsive="true">
                </table>
            </div>
        </div>
    </div>
</div>

<%--  重置密码模态框  --%>
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog"
     aria-labelledby="exampleModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                        aria-hidden="true"></span></button>
                <h4 class="modal-title" id="exampleModalLabel" data-dismiss="modal" aria-label="Close">
                    关闭</h4>
            </div>
            <div class="modal-body">
                <form id="contentForm" class="layui-form">
                    <div class="form-group row">
                        <label class="col-sm-4 col-form-label text-right">密码:</label>
                        <div class="col-sm-8">
                            <input class="form-control" id="password" name="password">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-4 col-form-label text-right">确认新密码:</label>
                        <div class="col-sm-8">
                            <input class="form-control" id="verifyPassword" name="verifyPassword">
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-success" id="updateOperatorPassword">确认</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>


<shiro:hasPermission name="Tenant_tenantOperatorUser_update">
    <script>
        Tenant_tenantOperatorUser_update = true
    </script>
</shiro:hasPermission>
<shiro:hasPermission name="Tenant_tenantOperatorUser_look">
    <script>
        Tenant_tenantOperatorUser_look = true
    </script>
</shiro:hasPermission>

<script type="text/javascript">
    tenantOperator.init();
</script>
</body>
</html>
